//
//  ESVideoTableViewCell.h
//  Eyeshot
//
//  Created by lanou3g on 15/7/2.
//  Copyright (c) 2015年 eyeshot. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ESToolbar.h"
#import "ESCellTopView.h"






@class ESVideoModel;
@class ESVideoTableViewCell;
@protocol ESVideoTableViewCellDelegate <NSObject>

@optional
- (void)myCell:(ESVideoTableViewCell *)myCell didSelectButton:(UIButton *)btn model:(ESVideoModel *)model;
- (void)videoCell:(ESVideoTableViewCell *)videoCell didSelectButton:(UIButton *)btn;
- (void)videoTableViewCell:(ESVideoTableViewCell *)cell didSeletedUserBtn:(ESCellUserProfile *)btn;//点击头像进入详情

@end
@interface ESVideoTableViewCell : UITableViewCell
/** 模型 */
@property (nonatomic,strong) ESVideoModel *model;
/** 指示器 */
@property(nonatomic,strong)UIActivityIndicatorView *indicatorView;
/** 监控播放状态 */
@property (nonatomic,assign) BOOL isPlaying;
/** 播放按钮视图*/
@property (nonatomic,strong) UIImageView *playview;
/** 工具条 */
@property (nonatomic,strong) ESToolbar *toolbar;
/** Cell背景图 */
@property (nonatomic,strong) UIView *bgView;
@property (nonatomic,assign) id <ESVideoTableViewCellDelegate> delegate;
+ (CGFloat)getHeightForCellByModel:(ESVideoModel *)model;
- (void)play:(UIButton *)btn;

//@property (nonatomic, weak) id<ESVideoTableViewCellDelegate> Intodelegate;

@end
